package com.sy.bean;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
@ApiModel("新增商品仓库库存")
public class WarehouseGoods {
    @ApiModelProperty("仓库id")
    @NotBlank(message = "仓库id不能为空")
    int warehosueId;
    @ApiModelProperty(value = "商品id",hidden = true)
    int goodsId;
    @ApiModelProperty("期初数量")
    int num;
    @ApiModelProperty("单位成本")
    double price;
    @ApiModelProperty("期初总价")
    double total;
}
